﻿using System;
using viNews.Controllers;
using visinia.SmartEngine.Site;

public partial class Admin_Pages_viNews_Settings_Settings : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (SiteSettings.FrontPage == BaseController.FrontPageId)
            HOMEPAGE.Checked = true;
        COMMENT_MODERATION.Checked = BaseController.ModerateComments;

    }

    public void Save()
    {
        if (HOMEPAGE.Checked)
            SiteSettings.FrontPage = BaseController.FrontPageId;
        BaseController.ModerateComments = COMMENT_MODERATION.Checked;
    }
}
